﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace CNFM_CROCODILE_LOGO.Core.Domain
{
    public static class ConfigBasic
    {
        /// <summary>
        /// 地址
        /// </summary>
        /// <returns>Microsoft.Extensions.Configuration.FileExtensions,Microsoft.Extensions.Configuration.Json</returns>
        public static string Url()
        {
            IConfiguration configuration = new ConfigurationBuilder()
                 .SetBasePath(Directory.GetCurrentDirectory())
              .AddJsonFile("appsettings.json").Build();

            return configuration["UrlSetting:DefaultConnection"].ToString();
        }
    }
}
